package com.atguigu.eduservice.entity.subject_封装参数为对象传给前端;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName : OneSubject
 * @Author : 骆发茂
 * @Date: 2021/11/19 8:29
 * @Description : 课程分类列表属性显示-一级目录，初始变量就是前端需要显示的id，title（label）标题
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OneSubject {

    private String id;
    private String title;

    private List<TwoSubject> children = new ArrayList<>();




}